#include "stdafx.h"
#include "corrdinate.h"
#include <WindowsX.h>

namespace uiwin
{
	Point::Point()
	{
		x = y = 0;
	}

	Point::Point(const POINT& src)
	{
		x = src.x;
		y = src.y;
	}

	Point::Point(int _x, int _y)
	{
		x = _x;
		y = _y;
	}

	Point::Point(LPARAM lParam)
	{
		x = GET_X_LPARAM(lParam);
		y = GET_Y_LPARAM(lParam);
	}

	//////////////////////////////////////////////////////////////////////////

	Size::Size()
	{
		cx = cy = 0;
	}

	Size::Size(const SIZE& src)
	{
		cx = src.cx;
		cy = src.cy;
	}

	Size::Size(const RECT rc)
	{
		cx = rc.right - rc.left;
		cy = rc.bottom - rc.top;
	}

	Size::Size(int w, int h)
	{
		cx = w;
		cy = h;
	}
}